<?php

namespace app\mini\model;

use app\common\model\BaseModel;
use app\common\model\DealerGoods;
use app\common\model\DealerGoodsSpec;
use app\company\model\CompanyOrder;
use think\model\relation\BelongsTo;

class RefundOrderDetail extends BaseModel
{
    protected $deleteTime = false;

    public function goods(): BelongsTo
    {
        return $this->belongsTo(DealerGoods::class, 'dealer_goods_id', 'id');
    }

    public function goodsSpec(): BelongsTo
    {
        return $this->belongsTo(DealerGoodsSpec::class, 'dealer_goods_spec_id', 'id');
    }
}